﻿#include <stdio.h>
char* my_strncat(char* dest, const char* src,size_t count)
{
	char* res = dest;
	while (*dest!='\0')
	{
		dest++;
	}
	while (count--)
	{
		*dest++ = *src++;
	}
	return res;
}
int main()
{
	char str1[20] = "Hello";
	char str2[] = " World";
	char* ret = my_strncat(str1, str2, 5);
	printf("%s", ret);
}